/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
"use strict";

var $protobuf = require("protobufjs/minimal");

// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;

// Exported root namespace
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});

$root.WmsStockDetail = (function() {

    /**
     * Properties of a WmsStockDetail.
     * @exports IWmsStockDetail
     * @interface IWmsStockDetail
     * @property {string|null} [uuid] WmsStockDetail uuid
     * @property {string|null} [upper] WmsStockDetail upper
     * @property {string|null} [validFlag] WmsStockDetail validFlag
     * @property {string|null} [creator] WmsStockDetail creator
     * @property {string|null} [createTime] WmsStockDetail createTime
     * @property {string|null} [creatorIp] WmsStockDetail creatorIp
     * @property {string|null} [lastModifier] WmsStockDetail lastModifier
     * @property {string|null} [lastModifyTime] WmsStockDetail lastModifyTime
     * @property {string|null} [lastModifierIp] WmsStockDetail lastModifierIp
     * @property {string|null} [ownerOrganize] WmsStockDetail ownerOrganize
     * @property {string|null} [ownerRole] WmsStockDetail ownerRole
     * @property {string|null} [serNum] WmsStockDetail serNum
     * @property {string|null} [serMemo] WmsStockDetail serMemo
     * @property {string|null} [serAudit] WmsStockDetail serAudit
     * @property {string|null} [serUsing] WmsStockDetail serUsing
     * @property {string|null} [serLabels] WmsStockDetail serLabels
     * @property {string|null} [serFileUrl] WmsStockDetail serFileUrl
     * @property {string|null} [serEditorContent] WmsStockDetail serEditorContent
     * @property {string|null} [serInputGroupData] WmsStockDetail serInputGroupData
     * @property {string|null} [serItemUuid] WmsStockDetail serItemUuid
     * @property {string|null} [serItemName] WmsStockDetail serItemName
     * @property {string|null} [serItemImg] WmsStockDetail serItemImg
     * @property {string|null} [serItemSerNum] WmsStockDetail serItemSerNum
     * @property {string|null} [serItemBrandUuid] WmsStockDetail serItemBrandUuid
     * @property {string|null} [serItemBrandName] WmsStockDetail serItemBrandName
     * @property {string|null} [serSpecificationUuid] WmsStockDetail serSpecificationUuid
     * @property {string|null} [serSpecificationName] WmsStockDetail serSpecificationName
     * @property {number|null} [count] WmsStockDetail count
     * @property {string|null} [wmsStockType] WmsStockDetail wmsStockType
     */

    /**
     * Constructs a new WmsStockDetail.
     * @exports WmsStockDetail
     * @classdesc Represents a WmsStockDetail.
     * @implements IWmsStockDetail
     * @constructor
     * @param {IWmsStockDetail=} [properties] Properties to set
     */
    function WmsStockDetail(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * WmsStockDetail uuid.
     * @member {string} uuid
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.uuid = "";

    /**
     * WmsStockDetail upper.
     * @member {string} upper
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.upper = "";

    /**
     * WmsStockDetail validFlag.
     * @member {string} validFlag
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.validFlag = "";

    /**
     * WmsStockDetail creator.
     * @member {string} creator
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.creator = "";

    /**
     * WmsStockDetail createTime.
     * @member {string} createTime
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.createTime = "";

    /**
     * WmsStockDetail creatorIp.
     * @member {string} creatorIp
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.creatorIp = "";

    /**
     * WmsStockDetail lastModifier.
     * @member {string} lastModifier
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.lastModifier = "";

    /**
     * WmsStockDetail lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.lastModifyTime = "";

    /**
     * WmsStockDetail lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.lastModifierIp = "";

    /**
     * WmsStockDetail ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.ownerOrganize = "";

    /**
     * WmsStockDetail ownerRole.
     * @member {string} ownerRole
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.ownerRole = "";

    /**
     * WmsStockDetail serNum.
     * @member {string} serNum
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serNum = "";

    /**
     * WmsStockDetail serMemo.
     * @member {string} serMemo
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serMemo = "";

    /**
     * WmsStockDetail serAudit.
     * @member {string} serAudit
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serAudit = "";

    /**
     * WmsStockDetail serUsing.
     * @member {string} serUsing
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serUsing = "";

    /**
     * WmsStockDetail serLabels.
     * @member {string} serLabels
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serLabels = "";

    /**
     * WmsStockDetail serFileUrl.
     * @member {string} serFileUrl
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serFileUrl = "";

    /**
     * WmsStockDetail serEditorContent.
     * @member {string} serEditorContent
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serEditorContent = "";

    /**
     * WmsStockDetail serInputGroupData.
     * @member {string} serInputGroupData
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serInputGroupData = "";

    /**
     * WmsStockDetail serItemUuid.
     * @member {string} serItemUuid
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serItemUuid = "";

    /**
     * WmsStockDetail serItemName.
     * @member {string} serItemName
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serItemName = "";

    /**
     * WmsStockDetail serItemImg.
     * @member {string} serItemImg
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serItemImg = "";

    /**
     * WmsStockDetail serItemSerNum.
     * @member {string} serItemSerNum
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serItemSerNum = "";

    /**
     * WmsStockDetail serItemBrandUuid.
     * @member {string} serItemBrandUuid
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serItemBrandUuid = "";

    /**
     * WmsStockDetail serItemBrandName.
     * @member {string} serItemBrandName
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serItemBrandName = "";

    /**
     * WmsStockDetail serSpecificationUuid.
     * @member {string} serSpecificationUuid
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serSpecificationUuid = "";

    /**
     * WmsStockDetail serSpecificationName.
     * @member {string} serSpecificationName
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.serSpecificationName = "";

    /**
     * WmsStockDetail count.
     * @member {number} count
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.count = 0;

    /**
     * WmsStockDetail wmsStockType.
     * @member {string} wmsStockType
     * @memberof WmsStockDetail
     * @instance
     */
    WmsStockDetail.prototype.wmsStockType = "";

    /**
     * Creates a new WmsStockDetail instance using the specified properties.
     * @function create
     * @memberof WmsStockDetail
     * @static
     * @param {IWmsStockDetail=} [properties] Properties to set
     * @returns {WmsStockDetail} WmsStockDetail instance
     */
    WmsStockDetail.create = function create(properties) {
        return new WmsStockDetail(properties);
    };

    /**
     * Encodes the specified WmsStockDetail message. Does not implicitly {@link WmsStockDetail.verify|verify} messages.
     * @function encode
     * @memberof WmsStockDetail
     * @static
     * @param {IWmsStockDetail} message WmsStockDetail message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    WmsStockDetail.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.serFileUrl != null && message.hasOwnProperty("serFileUrl"))
            writer.uint32(/* id 17, wireType 2 =*/138).string(message.serFileUrl);
        if (message.serEditorContent != null && message.hasOwnProperty("serEditorContent"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.serEditorContent);
        if (message.serInputGroupData != null && message.hasOwnProperty("serInputGroupData"))
            writer.uint32(/* id 19, wireType 2 =*/154).string(message.serInputGroupData);
        if (message.serItemUuid != null && message.hasOwnProperty("serItemUuid"))
            writer.uint32(/* id 20, wireType 2 =*/162).string(message.serItemUuid);
        if (message.serItemName != null && message.hasOwnProperty("serItemName"))
            writer.uint32(/* id 21, wireType 2 =*/170).string(message.serItemName);
        if (message.serItemImg != null && message.hasOwnProperty("serItemImg"))
            writer.uint32(/* id 22, wireType 2 =*/178).string(message.serItemImg);
        if (message.serItemSerNum != null && message.hasOwnProperty("serItemSerNum"))
            writer.uint32(/* id 23, wireType 2 =*/186).string(message.serItemSerNum);
        if (message.serItemBrandUuid != null && message.hasOwnProperty("serItemBrandUuid"))
            writer.uint32(/* id 24, wireType 2 =*/194).string(message.serItemBrandUuid);
        if (message.serItemBrandName != null && message.hasOwnProperty("serItemBrandName"))
            writer.uint32(/* id 25, wireType 2 =*/202).string(message.serItemBrandName);
        if (message.serSpecificationUuid != null && message.hasOwnProperty("serSpecificationUuid"))
            writer.uint32(/* id 26, wireType 2 =*/210).string(message.serSpecificationUuid);
        if (message.serSpecificationName != null && message.hasOwnProperty("serSpecificationName"))
            writer.uint32(/* id 27, wireType 2 =*/218).string(message.serSpecificationName);
        if (message.count != null && message.hasOwnProperty("count"))
            writer.uint32(/* id 28, wireType 0 =*/224).int32(message.count);
        if (message.wmsStockType != null && message.hasOwnProperty("wmsStockType"))
            writer.uint32(/* id 29, wireType 2 =*/234).string(message.wmsStockType);
        return writer;
    };

    /**
     * Encodes the specified WmsStockDetail message, length delimited. Does not implicitly {@link WmsStockDetail.verify|verify} messages.
     * @function encodeDelimited
     * @memberof WmsStockDetail
     * @static
     * @param {IWmsStockDetail} message WmsStockDetail message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    WmsStockDetail.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a WmsStockDetail message from the specified reader or buffer.
     * @function decode
     * @memberof WmsStockDetail
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {WmsStockDetail} WmsStockDetail
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    WmsStockDetail.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WmsStockDetail();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.ownerOrganize = reader.string();
                break;
            case 11:
                message.ownerRole = reader.string();
                break;
            case 12:
                message.serNum = reader.string();
                break;
            case 13:
                message.serMemo = reader.string();
                break;
            case 14:
                message.serAudit = reader.string();
                break;
            case 15:
                message.serUsing = reader.string();
                break;
            case 16:
                message.serLabels = reader.string();
                break;
            case 17:
                message.serFileUrl = reader.string();
                break;
            case 18:
                message.serEditorContent = reader.string();
                break;
            case 19:
                message.serInputGroupData = reader.string();
                break;
            case 20:
                message.serItemUuid = reader.string();
                break;
            case 21:
                message.serItemName = reader.string();
                break;
            case 22:
                message.serItemImg = reader.string();
                break;
            case 23:
                message.serItemSerNum = reader.string();
                break;
            case 24:
                message.serItemBrandUuid = reader.string();
                break;
            case 25:
                message.serItemBrandName = reader.string();
                break;
            case 26:
                message.serSpecificationUuid = reader.string();
                break;
            case 27:
                message.serSpecificationName = reader.string();
                break;
            case 28:
                message.count = reader.int32();
                break;
            case 29:
                message.wmsStockType = reader.string();
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a WmsStockDetail message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof WmsStockDetail
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {WmsStockDetail} WmsStockDetail
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    WmsStockDetail.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a WmsStockDetail message.
     * @function verify
     * @memberof WmsStockDetail
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    WmsStockDetail.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.serFileUrl != null && message.hasOwnProperty("serFileUrl"))
            if (!$util.isString(message.serFileUrl))
                return "serFileUrl: string expected";
        if (message.serEditorContent != null && message.hasOwnProperty("serEditorContent"))
            if (!$util.isString(message.serEditorContent))
                return "serEditorContent: string expected";
        if (message.serInputGroupData != null && message.hasOwnProperty("serInputGroupData"))
            if (!$util.isString(message.serInputGroupData))
                return "serInputGroupData: string expected";
        if (message.serItemUuid != null && message.hasOwnProperty("serItemUuid"))
            if (!$util.isString(message.serItemUuid))
                return "serItemUuid: string expected";
        if (message.serItemName != null && message.hasOwnProperty("serItemName"))
            if (!$util.isString(message.serItemName))
                return "serItemName: string expected";
        if (message.serItemImg != null && message.hasOwnProperty("serItemImg"))
            if (!$util.isString(message.serItemImg))
                return "serItemImg: string expected";
        if (message.serItemSerNum != null && message.hasOwnProperty("serItemSerNum"))
            if (!$util.isString(message.serItemSerNum))
                return "serItemSerNum: string expected";
        if (message.serItemBrandUuid != null && message.hasOwnProperty("serItemBrandUuid"))
            if (!$util.isString(message.serItemBrandUuid))
                return "serItemBrandUuid: string expected";
        if (message.serItemBrandName != null && message.hasOwnProperty("serItemBrandName"))
            if (!$util.isString(message.serItemBrandName))
                return "serItemBrandName: string expected";
        if (message.serSpecificationUuid != null && message.hasOwnProperty("serSpecificationUuid"))
            if (!$util.isString(message.serSpecificationUuid))
                return "serSpecificationUuid: string expected";
        if (message.serSpecificationName != null && message.hasOwnProperty("serSpecificationName"))
            if (!$util.isString(message.serSpecificationName))
                return "serSpecificationName: string expected";
        if (message.count != null && message.hasOwnProperty("count"))
            if (!$util.isInteger(message.count))
                return "count: integer expected";
        if (message.wmsStockType != null && message.hasOwnProperty("wmsStockType"))
            if (!$util.isString(message.wmsStockType))
                return "wmsStockType: string expected";
        return null;
    };

    /**
     * Creates a WmsStockDetail message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof WmsStockDetail
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {WmsStockDetail} WmsStockDetail
     */
    WmsStockDetail.fromObject = function fromObject(object) {
        if (object instanceof $root.WmsStockDetail)
            return object;
        var message = new $root.WmsStockDetail();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.serFileUrl != null)
            message.serFileUrl = String(object.serFileUrl);
        if (object.serEditorContent != null)
            message.serEditorContent = String(object.serEditorContent);
        if (object.serInputGroupData != null)
            message.serInputGroupData = String(object.serInputGroupData);
        if (object.serItemUuid != null)
            message.serItemUuid = String(object.serItemUuid);
        if (object.serItemName != null)
            message.serItemName = String(object.serItemName);
        if (object.serItemImg != null)
            message.serItemImg = String(object.serItemImg);
        if (object.serItemSerNum != null)
            message.serItemSerNum = String(object.serItemSerNum);
        if (object.serItemBrandUuid != null)
            message.serItemBrandUuid = String(object.serItemBrandUuid);
        if (object.serItemBrandName != null)
            message.serItemBrandName = String(object.serItemBrandName);
        if (object.serSpecificationUuid != null)
            message.serSpecificationUuid = String(object.serSpecificationUuid);
        if (object.serSpecificationName != null)
            message.serSpecificationName = String(object.serSpecificationName);
        if (object.count != null)
            message.count = object.count | 0;
        if (object.wmsStockType != null)
            message.wmsStockType = String(object.wmsStockType);
        return message;
    };

    /**
     * Creates a plain object from a WmsStockDetail message. Also converts values to other types if specified.
     * @function toObject
     * @memberof WmsStockDetail
     * @static
     * @param {WmsStockDetail} message WmsStockDetail
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    WmsStockDetail.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.serFileUrl = "";
            object.serEditorContent = "";
            object.serInputGroupData = "";
            object.serItemUuid = "";
            object.serItemName = "";
            object.serItemImg = "";
            object.serItemSerNum = "";
            object.serItemBrandUuid = "";
            object.serItemBrandName = "";
            object.serSpecificationUuid = "";
            object.serSpecificationName = "";
            object.count = 0;
            object.wmsStockType = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.serFileUrl != null && message.hasOwnProperty("serFileUrl"))
            object.serFileUrl = message.serFileUrl;
        if (message.serEditorContent != null && message.hasOwnProperty("serEditorContent"))
            object.serEditorContent = message.serEditorContent;
        if (message.serInputGroupData != null && message.hasOwnProperty("serInputGroupData"))
            object.serInputGroupData = message.serInputGroupData;
        if (message.serItemUuid != null && message.hasOwnProperty("serItemUuid"))
            object.serItemUuid = message.serItemUuid;
        if (message.serItemName != null && message.hasOwnProperty("serItemName"))
            object.serItemName = message.serItemName;
        if (message.serItemImg != null && message.hasOwnProperty("serItemImg"))
            object.serItemImg = message.serItemImg;
        if (message.serItemSerNum != null && message.hasOwnProperty("serItemSerNum"))
            object.serItemSerNum = message.serItemSerNum;
        if (message.serItemBrandUuid != null && message.hasOwnProperty("serItemBrandUuid"))
            object.serItemBrandUuid = message.serItemBrandUuid;
        if (message.serItemBrandName != null && message.hasOwnProperty("serItemBrandName"))
            object.serItemBrandName = message.serItemBrandName;
        if (message.serSpecificationUuid != null && message.hasOwnProperty("serSpecificationUuid"))
            object.serSpecificationUuid = message.serSpecificationUuid;
        if (message.serSpecificationName != null && message.hasOwnProperty("serSpecificationName"))
            object.serSpecificationName = message.serSpecificationName;
        if (message.count != null && message.hasOwnProperty("count"))
            object.count = message.count;
        if (message.wmsStockType != null && message.hasOwnProperty("wmsStockType"))
            object.wmsStockType = message.wmsStockType;
        return object;
    };

    /**
     * Converts this WmsStockDetail to JSON.
     * @function toJSON
     * @memberof WmsStockDetail
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    WmsStockDetail.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return WmsStockDetail;
})();

$root.WmsStockDetailCondition = (function() {

    /**
     * Properties of a WmsStockDetailCondition.
     * @exports IWmsStockDetailCondition
     * @interface IWmsStockDetailCondition
     * @property {string|null} [uuid] WmsStockDetailCondition uuid
     * @property {string|null} [upper] WmsStockDetailCondition upper
     * @property {string|null} [validFlag] WmsStockDetailCondition validFlag
     * @property {string|null} [creator] WmsStockDetailCondition creator
     * @property {string|null} [createTime] WmsStockDetailCondition createTime
     * @property {string|null} [creatorIp] WmsStockDetailCondition creatorIp
     * @property {string|null} [lastModifier] WmsStockDetailCondition lastModifier
     * @property {string|null} [lastModifyTime] WmsStockDetailCondition lastModifyTime
     * @property {string|null} [lastModifierIp] WmsStockDetailCondition lastModifierIp
     * @property {string|null} [ownerOrganize] WmsStockDetailCondition ownerOrganize
     * @property {string|null} [ownerRole] WmsStockDetailCondition ownerRole
     * @property {string|null} [serNum] WmsStockDetailCondition serNum
     * @property {string|null} [serMemo] WmsStockDetailCondition serMemo
     * @property {string|null} [serAudit] WmsStockDetailCondition serAudit
     * @property {string|null} [serUsing] WmsStockDetailCondition serUsing
     * @property {string|null} [serLabels] WmsStockDetailCondition serLabels
     * @property {Array.<string>|null} [uuidList] WmsStockDetailCondition uuidList
     * @property {string|null} [createTimeOUTSET] WmsStockDetailCondition createTimeOUTSET
     * @property {string|null} [createTimeFINISH] WmsStockDetailCondition createTimeFINISH
     * @property {string|null} [lastModifyTimeOUTSET] WmsStockDetailCondition lastModifyTimeOUTSET
     * @property {string|null} [lastModifyTimeFINISH] WmsStockDetailCondition lastModifyTimeFINISH
     * @property {Array.<string>|null} [serAuditList] WmsStockDetailCondition serAuditList
     * @property {Array.<string>|null} [serFileUrl] WmsStockDetailCondition serFileUrl
     * @property {Array.<string>|null} [serEditorContent] WmsStockDetailCondition serEditorContent
     * @property {string|null} [serItemUuid] WmsStockDetailCondition serItemUuid
     * @property {string|null} [serItemName] WmsStockDetailCondition serItemName
     * @property {string|null} [serItemImg] WmsStockDetailCondition serItemImg
     * @property {string|null} [serItemSerNum] WmsStockDetailCondition serItemSerNum
     * @property {string|null} [serItemBrandUuid] WmsStockDetailCondition serItemBrandUuid
     * @property {string|null} [serItemBrandName] WmsStockDetailCondition serItemBrandName
     * @property {string|null} [serSpecificationUuid] WmsStockDetailCondition serSpecificationUuid
     * @property {string|null} [serSpecificationName] WmsStockDetailCondition serSpecificationName
     * @property {number|null} [count] WmsStockDetailCondition count
     * @property {string|null} [wmsStockType] WmsStockDetailCondition wmsStockType
     */

    /**
     * Constructs a new WmsStockDetailCondition.
     * @exports WmsStockDetailCondition
     * @classdesc Represents a WmsStockDetailCondition.
     * @implements IWmsStockDetailCondition
     * @constructor
     * @param {IWmsStockDetailCondition=} [properties] Properties to set
     */
    function WmsStockDetailCondition(properties) {
        this.uuidList = [];
        this.serAuditList = [];
        this.serFileUrl = [];
        this.serEditorContent = [];
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * WmsStockDetailCondition uuid.
     * @member {string} uuid
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.uuid = "";

    /**
     * WmsStockDetailCondition upper.
     * @member {string} upper
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.upper = "";

    /**
     * WmsStockDetailCondition validFlag.
     * @member {string} validFlag
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.validFlag = "";

    /**
     * WmsStockDetailCondition creator.
     * @member {string} creator
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.creator = "";

    /**
     * WmsStockDetailCondition createTime.
     * @member {string} createTime
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.createTime = "";

    /**
     * WmsStockDetailCondition creatorIp.
     * @member {string} creatorIp
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.creatorIp = "";

    /**
     * WmsStockDetailCondition lastModifier.
     * @member {string} lastModifier
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.lastModifier = "";

    /**
     * WmsStockDetailCondition lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.lastModifyTime = "";

    /**
     * WmsStockDetailCondition lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.lastModifierIp = "";

    /**
     * WmsStockDetailCondition ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.ownerOrganize = "";

    /**
     * WmsStockDetailCondition ownerRole.
     * @member {string} ownerRole
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.ownerRole = "";

    /**
     * WmsStockDetailCondition serNum.
     * @member {string} serNum
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serNum = "";

    /**
     * WmsStockDetailCondition serMemo.
     * @member {string} serMemo
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serMemo = "";

    /**
     * WmsStockDetailCondition serAudit.
     * @member {string} serAudit
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serAudit = "";

    /**
     * WmsStockDetailCondition serUsing.
     * @member {string} serUsing
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serUsing = "";

    /**
     * WmsStockDetailCondition serLabels.
     * @member {string} serLabels
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serLabels = "";

    /**
     * WmsStockDetailCondition uuidList.
     * @member {Array.<string>} uuidList
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.uuidList = $util.emptyArray;

    /**
     * WmsStockDetailCondition createTimeOUTSET.
     * @member {string} createTimeOUTSET
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.createTimeOUTSET = "";

    /**
     * WmsStockDetailCondition createTimeFINISH.
     * @member {string} createTimeFINISH
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.createTimeFINISH = "";

    /**
     * WmsStockDetailCondition lastModifyTimeOUTSET.
     * @member {string} lastModifyTimeOUTSET
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.lastModifyTimeOUTSET = "";

    /**
     * WmsStockDetailCondition lastModifyTimeFINISH.
     * @member {string} lastModifyTimeFINISH
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.lastModifyTimeFINISH = "";

    /**
     * WmsStockDetailCondition serAuditList.
     * @member {Array.<string>} serAuditList
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serAuditList = $util.emptyArray;

    /**
     * WmsStockDetailCondition serFileUrl.
     * @member {Array.<string>} serFileUrl
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serFileUrl = $util.emptyArray;

    /**
     * WmsStockDetailCondition serEditorContent.
     * @member {Array.<string>} serEditorContent
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serEditorContent = $util.emptyArray;

    /**
     * WmsStockDetailCondition serItemUuid.
     * @member {string} serItemUuid
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serItemUuid = "";

    /**
     * WmsStockDetailCondition serItemName.
     * @member {string} serItemName
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serItemName = "";

    /**
     * WmsStockDetailCondition serItemImg.
     * @member {string} serItemImg
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serItemImg = "";

    /**
     * WmsStockDetailCondition serItemSerNum.
     * @member {string} serItemSerNum
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serItemSerNum = "";

    /**
     * WmsStockDetailCondition serItemBrandUuid.
     * @member {string} serItemBrandUuid
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serItemBrandUuid = "";

    /**
     * WmsStockDetailCondition serItemBrandName.
     * @member {string} serItemBrandName
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serItemBrandName = "";

    /**
     * WmsStockDetailCondition serSpecificationUuid.
     * @member {string} serSpecificationUuid
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serSpecificationUuid = "";

    /**
     * WmsStockDetailCondition serSpecificationName.
     * @member {string} serSpecificationName
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.serSpecificationName = "";

    /**
     * WmsStockDetailCondition count.
     * @member {number} count
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.count = 0;

    /**
     * WmsStockDetailCondition wmsStockType.
     * @member {string} wmsStockType
     * @memberof WmsStockDetailCondition
     * @instance
     */
    WmsStockDetailCondition.prototype.wmsStockType = "";

    /**
     * Creates a new WmsStockDetailCondition instance using the specified properties.
     * @function create
     * @memberof WmsStockDetailCondition
     * @static
     * @param {IWmsStockDetailCondition=} [properties] Properties to set
     * @returns {WmsStockDetailCondition} WmsStockDetailCondition instance
     */
    WmsStockDetailCondition.create = function create(properties) {
        return new WmsStockDetailCondition(properties);
    };

    /**
     * Encodes the specified WmsStockDetailCondition message. Does not implicitly {@link WmsStockDetailCondition.verify|verify} messages.
     * @function encode
     * @memberof WmsStockDetailCondition
     * @static
     * @param {IWmsStockDetailCondition} message WmsStockDetailCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    WmsStockDetailCondition.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.uuidList != null && message.uuidList.length)
            for (var i = 0; i < message.uuidList.length; ++i)
                writer.uint32(/* id 17, wireType 2 =*/138).string(message.uuidList[i]);
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.createTimeOUTSET);
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            writer.uint32(/* id 19, wireType 2 =*/154).string(message.createTimeFINISH);
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            writer.uint32(/* id 20, wireType 2 =*/162).string(message.lastModifyTimeOUTSET);
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            writer.uint32(/* id 21, wireType 2 =*/170).string(message.lastModifyTimeFINISH);
        if (message.serAuditList != null && message.serAuditList.length)
            for (var i = 0; i < message.serAuditList.length; ++i)
                writer.uint32(/* id 22, wireType 2 =*/178).string(message.serAuditList[i]);
        if (message.serFileUrl != null && message.serFileUrl.length)
            for (var i = 0; i < message.serFileUrl.length; ++i)
                writer.uint32(/* id 23, wireType 2 =*/186).string(message.serFileUrl[i]);
        if (message.serEditorContent != null && message.serEditorContent.length)
            for (var i = 0; i < message.serEditorContent.length; ++i)
                writer.uint32(/* id 24, wireType 2 =*/194).string(message.serEditorContent[i]);
        if (message.serItemUuid != null && message.hasOwnProperty("serItemUuid"))
            writer.uint32(/* id 25, wireType 2 =*/202).string(message.serItemUuid);
        if (message.serItemName != null && message.hasOwnProperty("serItemName"))
            writer.uint32(/* id 26, wireType 2 =*/210).string(message.serItemName);
        if (message.serItemImg != null && message.hasOwnProperty("serItemImg"))
            writer.uint32(/* id 27, wireType 2 =*/218).string(message.serItemImg);
        if (message.serItemSerNum != null && message.hasOwnProperty("serItemSerNum"))
            writer.uint32(/* id 28, wireType 2 =*/226).string(message.serItemSerNum);
        if (message.serItemBrandUuid != null && message.hasOwnProperty("serItemBrandUuid"))
            writer.uint32(/* id 29, wireType 2 =*/234).string(message.serItemBrandUuid);
        if (message.serItemBrandName != null && message.hasOwnProperty("serItemBrandName"))
            writer.uint32(/* id 30, wireType 2 =*/242).string(message.serItemBrandName);
        if (message.serSpecificationUuid != null && message.hasOwnProperty("serSpecificationUuid"))
            writer.uint32(/* id 31, wireType 2 =*/250).string(message.serSpecificationUuid);
        if (message.serSpecificationName != null && message.hasOwnProperty("serSpecificationName"))
            writer.uint32(/* id 32, wireType 2 =*/258).string(message.serSpecificationName);
        if (message.count != null && message.hasOwnProperty("count"))
            writer.uint32(/* id 33, wireType 0 =*/264).int32(message.count);
        if (message.wmsStockType != null && message.hasOwnProperty("wmsStockType"))
            writer.uint32(/* id 34, wireType 2 =*/274).string(message.wmsStockType);
        return writer;
    };

    /**
     * Encodes the specified WmsStockDetailCondition message, length delimited. Does not implicitly {@link WmsStockDetailCondition.verify|verify} messages.
     * @function encodeDelimited
     * @memberof WmsStockDetailCondition
     * @static
     * @param {IWmsStockDetailCondition} message WmsStockDetailCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    WmsStockDetailCondition.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a WmsStockDetailCondition message from the specified reader or buffer.
     * @function decode
     * @memberof WmsStockDetailCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {WmsStockDetailCondition} WmsStockDetailCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    WmsStockDetailCondition.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WmsStockDetailCondition();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.ownerOrganize = reader.string();
                break;
            case 11:
                message.ownerRole = reader.string();
                break;
            case 12:
                message.serNum = reader.string();
                break;
            case 13:
                message.serMemo = reader.string();
                break;
            case 14:
                message.serAudit = reader.string();
                break;
            case 15:
                message.serUsing = reader.string();
                break;
            case 16:
                message.serLabels = reader.string();
                break;
            case 17:
                if (!(message.uuidList && message.uuidList.length))
                    message.uuidList = [];
                message.uuidList.push(reader.string());
                break;
            case 18:
                message.createTimeOUTSET = reader.string();
                break;
            case 19:
                message.createTimeFINISH = reader.string();
                break;
            case 20:
                message.lastModifyTimeOUTSET = reader.string();
                break;
            case 21:
                message.lastModifyTimeFINISH = reader.string();
                break;
            case 22:
                if (!(message.serAuditList && message.serAuditList.length))
                    message.serAuditList = [];
                message.serAuditList.push(reader.string());
                break;
            case 23:
                if (!(message.serFileUrl && message.serFileUrl.length))
                    message.serFileUrl = [];
                message.serFileUrl.push(reader.string());
                break;
            case 24:
                if (!(message.serEditorContent && message.serEditorContent.length))
                    message.serEditorContent = [];
                message.serEditorContent.push(reader.string());
                break;
            case 25:
                message.serItemUuid = reader.string();
                break;
            case 26:
                message.serItemName = reader.string();
                break;
            case 27:
                message.serItemImg = reader.string();
                break;
            case 28:
                message.serItemSerNum = reader.string();
                break;
            case 29:
                message.serItemBrandUuid = reader.string();
                break;
            case 30:
                message.serItemBrandName = reader.string();
                break;
            case 31:
                message.serSpecificationUuid = reader.string();
                break;
            case 32:
                message.serSpecificationName = reader.string();
                break;
            case 33:
                message.count = reader.int32();
                break;
            case 34:
                message.wmsStockType = reader.string();
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a WmsStockDetailCondition message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof WmsStockDetailCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {WmsStockDetailCondition} WmsStockDetailCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    WmsStockDetailCondition.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a WmsStockDetailCondition message.
     * @function verify
     * @memberof WmsStockDetailCondition
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    WmsStockDetailCondition.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.uuidList != null && message.hasOwnProperty("uuidList")) {
            if (!Array.isArray(message.uuidList))
                return "uuidList: array expected";
            for (var i = 0; i < message.uuidList.length; ++i)
                if (!$util.isString(message.uuidList[i]))
                    return "uuidList: string[] expected";
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            if (!$util.isString(message.createTimeOUTSET))
                return "createTimeOUTSET: string expected";
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            if (!$util.isString(message.createTimeFINISH))
                return "createTimeFINISH: string expected";
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            if (!$util.isString(message.lastModifyTimeOUTSET))
                return "lastModifyTimeOUTSET: string expected";
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            if (!$util.isString(message.lastModifyTimeFINISH))
                return "lastModifyTimeFINISH: string expected";
        if (message.serAuditList != null && message.hasOwnProperty("serAuditList")) {
            if (!Array.isArray(message.serAuditList))
                return "serAuditList: array expected";
            for (var i = 0; i < message.serAuditList.length; ++i)
                if (!$util.isString(message.serAuditList[i]))
                    return "serAuditList: string[] expected";
        }
        if (message.serFileUrl != null && message.hasOwnProperty("serFileUrl")) {
            if (!Array.isArray(message.serFileUrl))
                return "serFileUrl: array expected";
            for (var i = 0; i < message.serFileUrl.length; ++i)
                if (!$util.isString(message.serFileUrl[i]))
                    return "serFileUrl: string[] expected";
        }
        if (message.serEditorContent != null && message.hasOwnProperty("serEditorContent")) {
            if (!Array.isArray(message.serEditorContent))
                return "serEditorContent: array expected";
            for (var i = 0; i < message.serEditorContent.length; ++i)
                if (!$util.isString(message.serEditorContent[i]))
                    return "serEditorContent: string[] expected";
        }
        if (message.serItemUuid != null && message.hasOwnProperty("serItemUuid"))
            if (!$util.isString(message.serItemUuid))
                return "serItemUuid: string expected";
        if (message.serItemName != null && message.hasOwnProperty("serItemName"))
            if (!$util.isString(message.serItemName))
                return "serItemName: string expected";
        if (message.serItemImg != null && message.hasOwnProperty("serItemImg"))
            if (!$util.isString(message.serItemImg))
                return "serItemImg: string expected";
        if (message.serItemSerNum != null && message.hasOwnProperty("serItemSerNum"))
            if (!$util.isString(message.serItemSerNum))
                return "serItemSerNum: string expected";
        if (message.serItemBrandUuid != null && message.hasOwnProperty("serItemBrandUuid"))
            if (!$util.isString(message.serItemBrandUuid))
                return "serItemBrandUuid: string expected";
        if (message.serItemBrandName != null && message.hasOwnProperty("serItemBrandName"))
            if (!$util.isString(message.serItemBrandName))
                return "serItemBrandName: string expected";
        if (message.serSpecificationUuid != null && message.hasOwnProperty("serSpecificationUuid"))
            if (!$util.isString(message.serSpecificationUuid))
                return "serSpecificationUuid: string expected";
        if (message.serSpecificationName != null && message.hasOwnProperty("serSpecificationName"))
            if (!$util.isString(message.serSpecificationName))
                return "serSpecificationName: string expected";
        if (message.count != null && message.hasOwnProperty("count"))
            if (!$util.isInteger(message.count))
                return "count: integer expected";
        if (message.wmsStockType != null && message.hasOwnProperty("wmsStockType"))
            if (!$util.isString(message.wmsStockType))
                return "wmsStockType: string expected";
        return null;
    };

    /**
     * Creates a WmsStockDetailCondition message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof WmsStockDetailCondition
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {WmsStockDetailCondition} WmsStockDetailCondition
     */
    WmsStockDetailCondition.fromObject = function fromObject(object) {
        if (object instanceof $root.WmsStockDetailCondition)
            return object;
        var message = new $root.WmsStockDetailCondition();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.uuidList) {
            if (!Array.isArray(object.uuidList))
                throw TypeError(".WmsStockDetailCondition.uuidList: array expected");
            message.uuidList = [];
            for (var i = 0; i < object.uuidList.length; ++i)
                message.uuidList[i] = String(object.uuidList[i]);
        }
        if (object.createTimeOUTSET != null)
            message.createTimeOUTSET = String(object.createTimeOUTSET);
        if (object.createTimeFINISH != null)
            message.createTimeFINISH = String(object.createTimeFINISH);
        if (object.lastModifyTimeOUTSET != null)
            message.lastModifyTimeOUTSET = String(object.lastModifyTimeOUTSET);
        if (object.lastModifyTimeFINISH != null)
            message.lastModifyTimeFINISH = String(object.lastModifyTimeFINISH);
        if (object.serAuditList) {
            if (!Array.isArray(object.serAuditList))
                throw TypeError(".WmsStockDetailCondition.serAuditList: array expected");
            message.serAuditList = [];
            for (var i = 0; i < object.serAuditList.length; ++i)
                message.serAuditList[i] = String(object.serAuditList[i]);
        }
        if (object.serFileUrl) {
            if (!Array.isArray(object.serFileUrl))
                throw TypeError(".WmsStockDetailCondition.serFileUrl: array expected");
            message.serFileUrl = [];
            for (var i = 0; i < object.serFileUrl.length; ++i)
                message.serFileUrl[i] = String(object.serFileUrl[i]);
        }
        if (object.serEditorContent) {
            if (!Array.isArray(object.serEditorContent))
                throw TypeError(".WmsStockDetailCondition.serEditorContent: array expected");
            message.serEditorContent = [];
            for (var i = 0; i < object.serEditorContent.length; ++i)
                message.serEditorContent[i] = String(object.serEditorContent[i]);
        }
        if (object.serItemUuid != null)
            message.serItemUuid = String(object.serItemUuid);
        if (object.serItemName != null)
            message.serItemName = String(object.serItemName);
        if (object.serItemImg != null)
            message.serItemImg = String(object.serItemImg);
        if (object.serItemSerNum != null)
            message.serItemSerNum = String(object.serItemSerNum);
        if (object.serItemBrandUuid != null)
            message.serItemBrandUuid = String(object.serItemBrandUuid);
        if (object.serItemBrandName != null)
            message.serItemBrandName = String(object.serItemBrandName);
        if (object.serSpecificationUuid != null)
            message.serSpecificationUuid = String(object.serSpecificationUuid);
        if (object.serSpecificationName != null)
            message.serSpecificationName = String(object.serSpecificationName);
        if (object.count != null)
            message.count = object.count | 0;
        if (object.wmsStockType != null)
            message.wmsStockType = String(object.wmsStockType);
        return message;
    };

    /**
     * Creates a plain object from a WmsStockDetailCondition message. Also converts values to other types if specified.
     * @function toObject
     * @memberof WmsStockDetailCondition
     * @static
     * @param {WmsStockDetailCondition} message WmsStockDetailCondition
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    WmsStockDetailCondition.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.arrays || options.defaults) {
            object.uuidList = [];
            object.serAuditList = [];
            object.serFileUrl = [];
            object.serEditorContent = [];
        }
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.createTimeOUTSET = "";
            object.createTimeFINISH = "";
            object.lastModifyTimeOUTSET = "";
            object.lastModifyTimeFINISH = "";
            object.serItemUuid = "";
            object.serItemName = "";
            object.serItemImg = "";
            object.serItemSerNum = "";
            object.serItemBrandUuid = "";
            object.serItemBrandName = "";
            object.serSpecificationUuid = "";
            object.serSpecificationName = "";
            object.count = 0;
            object.wmsStockType = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.uuidList && message.uuidList.length) {
            object.uuidList = [];
            for (var j = 0; j < message.uuidList.length; ++j)
                object.uuidList[j] = message.uuidList[j];
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            object.createTimeOUTSET = message.createTimeOUTSET;
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            object.createTimeFINISH = message.createTimeFINISH;
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            object.lastModifyTimeOUTSET = message.lastModifyTimeOUTSET;
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            object.lastModifyTimeFINISH = message.lastModifyTimeFINISH;
        if (message.serAuditList && message.serAuditList.length) {
            object.serAuditList = [];
            for (var j = 0; j < message.serAuditList.length; ++j)
                object.serAuditList[j] = message.serAuditList[j];
        }
        if (message.serFileUrl && message.serFileUrl.length) {
            object.serFileUrl = [];
            for (var j = 0; j < message.serFileUrl.length; ++j)
                object.serFileUrl[j] = message.serFileUrl[j];
        }
        if (message.serEditorContent && message.serEditorContent.length) {
            object.serEditorContent = [];
            for (var j = 0; j < message.serEditorContent.length; ++j)
                object.serEditorContent[j] = message.serEditorContent[j];
        }
        if (message.serItemUuid != null && message.hasOwnProperty("serItemUuid"))
            object.serItemUuid = message.serItemUuid;
        if (message.serItemName != null && message.hasOwnProperty("serItemName"))
            object.serItemName = message.serItemName;
        if (message.serItemImg != null && message.hasOwnProperty("serItemImg"))
            object.serItemImg = message.serItemImg;
        if (message.serItemSerNum != null && message.hasOwnProperty("serItemSerNum"))
            object.serItemSerNum = message.serItemSerNum;
        if (message.serItemBrandUuid != null && message.hasOwnProperty("serItemBrandUuid"))
            object.serItemBrandUuid = message.serItemBrandUuid;
        if (message.serItemBrandName != null && message.hasOwnProperty("serItemBrandName"))
            object.serItemBrandName = message.serItemBrandName;
        if (message.serSpecificationUuid != null && message.hasOwnProperty("serSpecificationUuid"))
            object.serSpecificationUuid = message.serSpecificationUuid;
        if (message.serSpecificationName != null && message.hasOwnProperty("serSpecificationName"))
            object.serSpecificationName = message.serSpecificationName;
        if (message.count != null && message.hasOwnProperty("count"))
            object.count = message.count;
        if (message.wmsStockType != null && message.hasOwnProperty("wmsStockType"))
            object.wmsStockType = message.wmsStockType;
        return object;
    };

    /**
     * Converts this WmsStockDetailCondition to JSON.
     * @function toJSON
     * @memberof WmsStockDetailCondition
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    WmsStockDetailCondition.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return WmsStockDetailCondition;
})();

module.exports = $root;
